import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Home from '@/components/Home'
import Home3 from '@/components/Home3'
import One1 from '@/components/home1/one1'
import Two1 from '@/components/Home1/two1'
import One2 from '@/components/home2/one2'
import Two2 from '@/components/home2/two2'
Vue.use(Router)
let routes=[
  {
    path: '/login',
    name: 'Login',
    component: Login,
    hidden:true
  },
  {
    path: '/',
    name: 'Home',
    component: Home,
    children:[
      //第一个导航
      {
        path:'home1/one1',
        name:'One1',
        component:One1
      },
      {
        path:'home1/two1',
        name:'Two1',
        component:Two1
      },
      //第二个导航
      {
        path:'home2/one2',
        name:'One2',
        component:One2
      },
      {
        path:'home2/two2',
        name:'Two2',
        component:Two2
      },
      // 第三个导航
      {
        path:'home3',
        name:'Home3',
        component:Home3
      },
    ]
  }
]
export default new Router({
  routes: routes
})
